import 'package:demo/common/routers/route_names.dart';
import 'package:demo/common/utils/log_util.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:talker_flutter/talker_flutter.dart';

import 'log_ctrl.dart';

class LogPage extends StatelessWidget {
  LogPage({super.key});

  static open() {
    Get.toNamed(RouteNames.log);
  }

  final LogCtrl ctrl = Get.put(LogCtrl());

  @override
  Widget build(BuildContext context) {
    return TalkerScreen(
      talker: Log.talker,
      isLogsExpanded: false, //不展开
    );
  }
}
